/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('cms_article_items_label_code', {
    AR_ID: {
      type: DataTypes.STRING(37),
      allowNull: false,
      primaryKey: true
    },
    AR_LabelCode: {
      type: DataTypes.CHAR(10),
      allowNull: true
    },
    AR_ArtID: {
      type: DataTypes.STRING(37),
      allowNull: true,
      references: {
        model: 'cms_article_items',
        key: 'Art_ID'
      }
    }
  }, {
    tableName: 'cms_article_items_label_code'
  });
};
